package com.face.classic.controller;

import com.face.classic.service.LoginService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    private LoginService loginService;

    /**
     * 微信登录
     */
    @GetMapping("/wx/login")
    public String login(String code) {
        return loginService.login(code);
    }

}
